python execute bat file

43

python execute bat file -

import subprocess
subprocess.call([r'C:\Example\For\A\Location\Script.bat'])

python run batch file -

import subprocess
subprocess.call([r'path where the batch file is stored\name of the batch file.bat'])

Comments

Submit
0 Comments